-- GENERATED SPELL FOR [Coilfang Water Elemental] --


function spell0_17917(pUnit, Event) --@Water Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(34449,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17917', 1500, 1)
end

function spell1_17917(pUnit, Event) --@Water Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(37924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17917', 1500, 1)
end

function Sorts_17917(pUnit, Event)
local choix_sorts_17917 = math.random(0, 1)
if choix_sorts_17917 == 0 then
pUnit:RegisterEvent('spell0_17917', 1, 1)
end
if choix_sorts_17917 == 1 then
pUnit:RegisterEvent('spell1_17917', 1, 1)
end
end

function mob17917_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17917', math.random(1500, 3000), 1)
end

function mob17917_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17917_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17917_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17917, 1, 'mob17917_Action')
RegisterUnitEvent(17917, 2, 'mob17917_Leave')
RegisterUnitEvent(17917, 3, 'mob17917_Kill')
RegisterUnitEvent(17917, 4, 'mob17917_Die')
